package cn.doitedu.day01

/**
 * While循环的使用
 */
object WhileDemo {

  def main(args: Array[String]): Unit = {

    val arr = Array("a", "b", "c", "d")

    var i = 0
    while(i < arr.length) {
      println(arr(i))
      i += 1
    }


  }

}
